<article style="display: block;" ui-view="" data-current-cache="false">
<section class="oybbg" avalonctrl="oneyuanbuying">
    <div class="oyb-header">
    <a href="activitys.php" style="position: absolute;top:10px;right:15px;color:#FFF;">活动专区 &gt;</a>
        <img class="oybbg-img" src="themes/view/images/oybbg.png" alt="">
        <div class="lx-trys-mes-box">
            <div class="lx-trys-mes">
                <img class="lx-trys-img" src="<?php if ($this->_var['sheep']['logo_img']): ?><?php echo $this->_var['sheep']['logo_img']; ?><?php else: ?>themes/view/images/gz.jpg<?php endif; ?>">
                
				<?php if ($this->_var['is_kaijiang'] == 1): ?>
					<div class="wait-lottery"></div>
				<?php else: ?>
					<div class="wait-lotteryed"></div>
				<?php endif; ?>
                <div class="lx-contentbox">
                    <div class="lx-trys-row1">
                        <em>奖品</em>
                        <span>（第<?php echo $this->_var['sheep']['qishu']; ?>期）<?php echo $this->_var['sheep']['sheep_name']; ?></span>
                    </div>
                    <div class="lx-trys-row2">
                        <span>价值:<?php echo $this->_var['sheep']['jiazhi']; ?>元<a href="article.php?id=19"><em></em></a></span>
                        <strong>年回报率<?php echo $this->_var['sheep']['bonus']; ?>%</strong>
                    </div>
                    <div class="lx-trys-row2">
                        <span>总需:<?php echo $this->_var['sheep']['number']; ?>人次<i>(满)</i></span>
                        <strong>领养周期 <?php echo $this->_var['sheep']['cycle']; ?>个月 </strong>
                    </div>
                </div>
                <div class="lx-white-mask"><span class="white"></span><span class="org"></span></div>
            </div>
        </div>
		<?php if ($this->_var['user']): ?>	
			<?php if ($this->_var['is_kaijiang'] == 1): ?>
				<?php if ($this->_var['sheep']['start'] == 1): ?>
				<div class="xy-box " id="yyqy" sheep_id="<?php echo $this->_var['sheep']['sheep_id']; ?>"> 
					<a href="javascript:;"  ></a>
				</div>
				<?php else: ?>
				<!--  <div class="un-hot-info-box">
					<p class="content">活动还未开始或者已经结束了 <a href="activitys.php">去参加其他活动</a></p>
				</div> -->
				<div class="xy-box " onclick="msgs('活动暂未开始');" > 
					<a href="javascript:;" class="a1"  ></a>
				</div>
				<?php endif; ?>
			<?php endif; ?>
		<?php else: ?>
		 <div class="un-hot-info-box">
            <p class="content">还没有登录哦 <a href="user.php">立即去登录</a></p>
        </div>
		<?php endif; ?>
		<div id="J_Tip" class="wk-tanchu"   > 
				<?php if ($this->_var['is_weixin'] == 1): ?> 
					<button id="yy_wxpay" class="yy_wxpay"  sheep_id=<?php echo $this->_var['sheep']['sheep_id']; ?>  >微信支付</button>
				<?php endif; ?> 
			<button id="yy_yuepay"   class="yy_yuepay" sheep_id=<?php echo $this->_var['sheep']['sheep_id']; ?>  >余额支付</button>
			<a id="J_Close"  class="wk-guanbi-zhifu" href="javascript:;" >关闭提示</a>
		</div>
		
		
		<div id="J_Tip1" class="wk-tanchu"  >  
			<input type="password" name="pwd"  class="yy_yuepay" style="width: 7.4rem;background: #fff;color: #000;" id="pwd" />
			<button  id="payzhifu" class="yy_wxpay"  sheep_id=<?php echo $this->_var['sheep']['sheep_id']; ?> >确认支付</button>
			<a id="J_Close1" class="wk-guanbi-zhifu"  href="javascript:;">取消支付</a>
		</div>
        

		<?php if ($this->_var['zj']): ?>
		<div class="bone-box">
            <em></em><i>第<?php echo $this->_var['sheep']['qishu']; ?>期中奖号码：</i><span><?php echo $this->_var['zj']['number']; ?></span>
        </div>
        <div class="un-hot-info-box" style="text-align: left;">
            <div class="img-item">
                <a href="javascript:;">
				<img src="<?php if ($this->_var['zj']['user']['wx']['headimgurl']): ?><?php echo $this->_var['zj']['user']['wx']['headimgurl']; ?><?php else: ?>themes/view/images/default.png<?php endif; ?>"></a>
                <p>获奖者：<?php echo $this->_var['zj']['name']; ?></p>
                <p>本期参与：<?php echo $this->_var['zj']['jilunum']; ?>人次 </p>
            </div>
            <p class="content">参与抢羊号：
				<?php $_from = $this->_var['zj']['jilu']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'items');if (count($_from)):
    foreach ($_from AS $this->_var['items']):
?>
					<span style="display: inline-block;" class="cur"><?php echo $this->_var['items']['number']; ?></span>
				<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
			</p>
        </div>
		<?php endif; ?>
        
        <div class="un-hot-info-box">
            <p class="content">重要事情说三次公平、公平、公平，查看公平、公正、公开的幸运号规划！</p>
        </div>

    </div>
 
	<?php if ($this->_var['this_count']): ?>
    <div class="un-hot-info-box">
        <p class="content" style="margin-bottom: 10px;">我本期参与：<?php echo $this->_var['this_count']; ?>人次 </p>
        <p class="content">抢羊号：
		<?php $_from = $this->_var['this_yy']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'item');if (count($_from)):
    foreach ($_from AS $this->_var['item']):
?>
		<span style="display: inline-block;"><?php echo $this->_var['item']['number']; ?></span>
		<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
		</p>
    </div>
	<?php endif; ?>
    <div>
        <div class="aw-tip-box">
            <div class="sheep-ico"></div>
            <div class="sheep-say">
				<?php if ($this->_var['is_winning'] == 2): ?>
                <div>主人，恭喜您中奖了，保持娱乐性，千万不要沉迷于“一元抢羊”哟！理性的理财才可持续！</div>
				<?php else: ?>
				 <div>主人，别难过，中奖是纯粹的运气，保持娱乐性，千万不要沉迷于“一元抢羊”哟！理性的理财才可持续！</div>
				<?php endif; ?>
                <p><a href="sheep.php" class="sheep-btn">立即领养</a></p>
                <em></em>
            </div>
        </div>
    </div>
    <div>
        <p style="text-align: center;margin-top: 20px;">
            <a style="color:#fff;" href="activitys.php?act=oneyuanbuylist">全部1元活动&gt;&gt;</a>
        </p>
        <div class="un-join-log"  id="wk-content" >
            <p class="title"><i class="icon"></i><strong>参与记录</strong><span>开始时间<?php echo $this->_var['sheep']['kaishi_time']; ?></span></p>
            <ul class="wrap ">
                 
            </ul>
        </div>
    </div>
</section>
</article>